<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // break和continue
        while (1) {
            let a = prompt('你喜欢我吗？y/n')
            if (a === 'n') {
                alert('居然不喜欢我？')
                continue
            }
            if (a === 'y') {
                alert('我也喜欢你')
                break
            }
        }
    </script>
</body>

</html>